<?php
/**
 * Created by PhpStorm.
 * User: jwb
 * Date: 2020/9/8
 * Time: 14:44
 */

namespace App\Admin\Extensions\Actions;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;

class ReviewModalAction extends ModalRowAction
{
    public function handle(Model $model,Request $request)
    {
        return $this->response()->success('审核成功！')->refresh();
    }
    public function setConfig(Closure $callback)
    {
        if ($callback instanceof \Closure) {
            $callback = $callback->bindTo($this);
            call_user_func_array($callback, [$this]);
        }
        return $this;
    }

}